package com.cxgk.app.cxgkdemo.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.cxgk.app.cxgkdemo.R;
import com.cxgk.app.cxgkdemo.logic.RestClient;
import com.cxgk.app.cxgkdemo.utils.SweetAlertDialogFactory;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * Created by lenovo on 2016/12/21.
 */

public class BaseActivity extends AppCompatActivity {
    RestClient mRestClient;
    SweetAlertDialog mLoadingDialog;
    static String TAG;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mRestClient = new RestClient(this);
        TAG = this.getClass().getName();
        mLoadingDialog = SweetAlertDialogFactory.build(this, SweetAlertDialog.PROGRESS_TYPE).setTitleText(getString(R.string.LOADING));

    }
}
